clc;
clf;
tx =load('/home/rohit/Desktop/pan2a/tx1a');

len=size(tx,1);
j=1;
k=1;
for i=1:len
    if(tx(i,1)==0)
       tx_tx(j,:)=tx(i,:);
       j=j+1;
    else 
        tx_rx(k,:)=tx(i,:);
        k=k+1;
    end
end
rx =load('/home/rohit/Desktop/pan2a/rx1a');
%rx=rx2a;

len=size(rx,1);
j=1;
k=1;
for i=1:len
    if(rx(i,1)==0)
       rx_tx(j,:)=rx(i,:);
       j=j+1;
    else 
        rx_rx(k,:)=rx(i,:);
        k=k+1;
    end
end
plot(tx_tx(:,4),39,'b*', rx_tx(:,4)+479,42,'b*',tx_rx(:,4),39,'r*',rx_rx(:,4)+479,42,'r*');
hold on;
for i=1:size(tx_tx,1)
plot([tx_tx(i,4),tx_tx(i,4)+479],[39,42]);
end
for i=1:size(rx_tx,1)
plot([rx_tx(i,4)+479,rx_tx(i,4)+479+479],[42,39]);
end
ylim([35 45]);
%axis([5.5e4,10.5e4,1,50]);
